package com.liuyz.decorator_;

// 处理流
public class BufferedReader_ {

    private Reader_ reader_;

    public BufferedReader_(Reader_ reader_) {
        this.reader_ = reader_;
    }

    // 多次读取文件
    public void readFiles(int nums) {
        for (int i = 0; i < nums; i++) {
            reader_.read();
        }
    }

    // 多次读取字符串
    public void readStrings(int nums) {
        for (int i = 0; i < nums; i++) {
            reader_.read();
        }
    }

}